package com.example.mysql.trx;

import com.example.mysql.dict.SystemDict;

/**
 * wzy:wzynov@qq.com
 */
public class TrxSys {

    public static ThreadLocal<Trx> trxThreadLocal = new ThreadLocal<>();

    public static Integer getNewTrxId() {
        Integer trxId = SystemDict.getInstance().addMaxTrxId();
        SystemDict.getInstance().serialize();
        return trxId;
    }
}
